<template>
  <div>
    <!-- 路由出口，显示最后的匹配结果，匹配的过程和逻辑都在route/index.js中 -->
    <router-view></router-view>
  </div>
</template>

<script>
import HelloWorld from './components/HelloWorld.vue'
// 1. 导入 import who from where
import MyCom from './components/MyCom.vue'

export default {
  name: 'App',
  components: {
    HelloWorld,
    // 2. 声明
    MyCom
  }
}
</script>

<style>
* {
  margin: 0;
  padding: 0;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* text-align: center; */
  color: #2c3e50;
  /* margin-top: 60px; */
}
</style>
